home *** CD-ROM | disk | FTP | other *** search
/ X User Tools / X User Tools (O'Reilly and Associates)(1994).ISO / sun4c / archive / tcltk.z / tcltk / man / catn / tkvars.n < prev    next >
Encoding:
Text File  |  1994-09-20  |  3.4 KB  |  133 lines

  1.  
  2.  
  3.  
  4. tkvars(n)                  Tk Commands                        3.3
  5.  
  6.  
  7.  
  8. _________________________________________________________________
  9.  
  10. NAME
  11.      tkvars - Variables used or set by Tk
  12. _________________________________________________________________
  13.  
  14.  
  15. DESCRIPTION
  16.      The following Tcl variables are either set or used by Tk  at
  17.      various times in its execution:
  18.  
  19.      tk_library     Tk sets this variable  hold  the  name  of  a
  20.                     directory containing a library of Tcl scripts
  21.                     related to Tk.  These scripts include an ini-
  22.                     tialization  file  that is normally processed
  23.                     whenever a Tk  application  starts  up,  plus
  24.                     other files containing procedures that imple-
  25.                     ment  default  behaviors  for  widgets.   The  |
  26.                     value  of  this  variable  is  taken from the  |
  27.                     TK_LIBRARY  environment  variable,   if   one  |
  28.                     exists, or else from a default value compiled  |
  29.                     into Tk.
  30.  
  31.      tk_patchLevel  Contains a decimal integer giving the current  |
  32.                     patch  level  for  Tk.   The  patch  level is  |
  33.                     incremented for each new  release  or  patch,  |
  34.                     and  it  uniquely identifies an official ver-  |
  35.                     sion of Tk.
  36.  
  37.      tk_priv        This variable is an array containing  several
  38.                     pieces of information that are private to Tk.
  39.                     The  elements  of  tk_priv  are  used  by  Tk
  40.                     library   procedures  and  default  bindings.
  41.                     They should not be accessed by any code  out-
  42.                     side Tk.
  43.  
  44.      tk_strictMotif This variable is set to zero by default.   If
  45.                     an  application  sets  it  to  one,  then  Tk
  46.                     attempts to adhere as closely as possible  to
  47.                     Motif  look-and-feel standards.  For example,
  48.                     active elements such as buttons and scrollbar
  49.                     sliders   will  not  change  color  when  the
  50.                     pointer passes over them.
  51.  
  52.      tk_version     Tk sets this variable in the interpreter  for
  53.                     each  application.   The  variable  holds the
  54.                     current version number of the Tk  library  in
  55.                     the  form  _m_a_j_o_r._m_i_n_o_r.   _M_a_j_o_r and _m_i_n_o_r are
  56.                     integers.  The major version number increases
  57.                     in  any Tk release that includes changes that
  58.                     are not backward  compatible  (i.e.  whenever
  59.                     existing Tk applications and scripts may have
  60.  
  61.  
  62.  
  63. Tk                                                              1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. tkvars(n)                  Tk Commands                        3.3
  71.  
  72.  
  73.  
  74.                     to change to work with the new release).  The
  75.                     minor  version number increases with each new
  76.                     release of Tk, except that it resets to  zero
  77.                     whenever the major version number changes.
  78.  
  79.      tkVersion      Has the same value as tk_version.  This vari-
  80.                     able is obsolete and will be deleted soon.
  81.  
  82.  
  83. KEYWORDS
  84.      variables, version
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129. Tk                                                              2
  130.  
  131.  
  132.  
  133.